package org.dingyom.gift.clients;

import org.dingyom.gift.dto.SmsDto;
import org.dingyom.gift.util.AjaxResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "GIFT-COMMON",fallbackFactory = SmsClientFallbackFactory.class)
public interface SmsClient {
    @PostMapping("/sms/sendSms")
    public AjaxResult sendSms(@RequestBody String tel);

    @PostMapping("/sms/verify")
    public AjaxResult verify(@RequestBody SmsDto dto);
}
